// pages/hotphoto/h.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    List: [
      'https://cdn.pixabay.com/photo/2018/02/05/05/19/tourism-3131411_1280.jpg',
      'https://cdn.pixabay.com/photo/2015/05/28/18/50/the-three-gorges-788314_640.jpg',
      'https://cdn.pixabay.com/photo/2017/08/12/05/25/the-scenery-2633565_640.jpg',
      'https://cdn.pixabay.com/photo/2018/08/27/18/54/chinese-landscape-3635704_640.jpg',
      'https://cdn.pixabay.com/photo/2018/02/05/05/19/tourism-3131411_1280.jpg',
      'https://cdn.pixabay.com/photo/2015/05/28/18/50/the-three-gorges-788314_640.jpg',
      'https://cdn.pixabay.com/photo/2017/08/12/05/25/the-scenery-2633565_640.jpg',
      'https://cdn.pixabay.com/photo/2018/08/27/18/54/chinese-landscape-3635704_640.jpg'
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  handleclick(data) {
    let data1 = data.currentTarget.dataset.item
    wx.setStorageSync('urls',data1)
    wx.navigateTo({
      url:'/pages/photoss/photoss?data='+data1
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})